<div class="row-content am-cf">
    <div class="row">
        <div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
            <div class="widget am-cf">
                <div class="widget-head am-cf">
                    <div class="widget-title am-cf">认证申请列表</div>
                </div>
                <div class="widget-body am-fr">
                    <div class="am-scrollable-horizontal am-u-sm-12">
                        <table width="100%" class="am-table am-table-compact am-table-striped
                         tpl-table-black am-text-nowrap">
                            <thead>
                            <tr>
                                <th>申请编号</th>
                                <th>认证类型</th>
                                <th>认证费用</th>
                                <th>审核状态</th>
                                <th>创建时间</th>
                                <th>操作</th>
                            </tr>
                            </thead>
                            <tbody>
                            {if !$list->isEmpty()}
                                {foreach $list as $item}
                                <tr>
                                    <td class="am-text-middle">{$item['apply_id']}</td>
                                    <td class="am-text-middle">
                                        <p class="item-title">{$item['apply_mode']['text']}</p>
                                    </td>
                                    <td class="am-text-middle">
                                        <span class="am-badge {$item['pay_status']['value'] == 10 ? 'am-badge-danger':'am-badge-success'}">
                                        {$item['pay_status']['text']}
                                        </span>
                                    </td>
                                    <td class="am-text-middle">
                                        <span class="am-badge {$item['apply_status']['value'] == 30 ? 'am-badge-success':'am-badge-danger'}">
                                        {$item['apply_status']['text']}
                                        </span>
                                    </td>
                                    <td class="am-text-middle">{$item['create_time']}</td>
                                    <td class="am-text-middle">
                                        <div class="tpl-table-black-operation">
                                            <a href="{:url('apply/detail',['id' => $item['apply_id']])}">
                                                <i class="am-icon-pencil"></i> 详情
                                            </a>
                                        </div>
                                    </td>
                                </tr>
                                {/foreach}
                            {else /}
                                <tr>
                                    <td colspan="6" class="am-text-center">暂无记录</td>
                                </tr>
                            {/if}
                            </tbody>
                        </table>
                    </div>
                    <div class="am-u-lg-12 am-cf">
                        <div class="am-fr">{:$list->render()} </div>
                        <div class="am-fr pagination-total am-margin-right">
                            <div class="am-vertical-align-middle">总记录：{:$list->total()}</div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>